package com.ruoyi.core.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * client_product对象 client_product
 *
 * @author ruoyi
 * @date 2020-09-28
 */
public class ClientProduct {

    /**
     * 产品id
     */
    private Long id;

    /**
     * 产品名
     */
    @Excel(name = "产品名")
    private String name;

    /**
     * 产品描述
     */
    @Excel(name = "产品描述")
    private String description;

    /**
     * 产品功能描写
     */
    @Excel(name = "产品功能描写")
    private String functionRemark;

    /**
     * logo图片地址
     */
    @Excel(name = "logo图片地址")
    private String logo;

    /**
     * 网址
     */
    @Excel(name = "网址")
    private String url;

    /**
     * 产品状态
     */
    @Excel(name = "产品状态")
    private ResourceStatus status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setFunctionRemark(String functionRemark) {
        this.functionRemark = functionRemark;
    }

    public String getFunctionRemark() {
        return functionRemark;
    }

    public String getLogo() {
        return logo;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public ResourceStatus getStatus() {
        return status;
    }

    public void setStatus(ResourceStatus status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("name", getName()).append("description", getDescription())
                                                                        .append("functionRemark", getFunctionRemark()).append("logo", getLogo())
                                                                        .append("url", getUrl()).append("status", getStatus())
                                                                        .append("createTime", getCreateTime()).append("updateTime", getUpdateTime()).toString();
    }
}
